<%@ Page language="c#" AutoEventWireup="true" Inherits="Karamasoft.WebControls.UltimateSearch.Admin" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
	<title>UltimateSearch Admin Page</title>
	<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
	<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
	<meta name="vs_defaultClientScript" content="JavaScript">
	<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
	<style>
		.ButtonText { PADDING-LEFT: 10px; TEXT-ALIGN: left }
	</style>
	<script type="text/javascript">
	    function ToggleAddRemovePages() {
	        document.getElementById('spanAddRemove').style.display = (document.getElementById('spanAddRemove').style.display == 'block') ? 'none' : 'block';
	        document.getElementById('btnAddRemoveUrls').value = (document.getElementById('btnAddRemoveUrls').value == 'Add/Remove Pages >>') ? 'Add/Remove Pages <<' : 'Add/Remove Pages >>';
	        return false;
	    }
	</script>
</head>
<body>
    <form id="form1" runat="server">
	<table cellSpacing="0" cellPadding="0" border="0">
		<tr>
			<td><img src="Karamasoft.gif">
				<span style="MARGIN-LEFT: 230px"><a href="Admin.htm" target="_blank"><img src="Help.jpg" alt="UltimateSearch Admin Help" title="UltimateSearch Admin Help" style="border:0" /></a></span><br /><br />
			</td>
		</tr>
		<tr>
			<td><span style="MARGIN-LEFT: 120px; FONT-WEIGHT: bold; FONT-SIZE: 16px; COLOR: steelblue; FONT-FAMILY: Verdana">UltimateSearch Admin Page</span><br /><br />
			</td>
		</tr>
		<tr>
			<td>
				<table cellSpacing="0" cellPadding="0" border="0">
		            <tr valign="top">
			            <td>
				            <asp:Button id="btnIndexFull" CssClass="ButtonText" runat="server" Text="Index Full" Width="200px" ToolTip="Index everything from scratch"></asp:Button><br />
				            <asp:Button id="btnIndexIncremental" CssClass="ButtonText" runat="server" Text="Index Incremental" Width="200px" ToolTip="Index only the modified pages"></asp:Button>
			            </td>
			            <td>
				            <asp:Button id="btnLoadCopiedIndex" CssClass="ButtonText" runat="server" Text="Load Copied Index" Width="200px" ToolTip="Load index copied from another machine"></asp:Button><br />
				            <asp:Button id="btnAddRemoveUrls" CssClass="ButtonText" runat="server" Text="Add/Remove Pages >>" Width="200px" OnClientClick="return ToggleAddRemovePages();" ToolTip="Add new pages or remove existing ones" />
			            </td>
			            <td>
				            <asp:Button id="btnDisplayIndexedPages" CssClass="ButtonText" runat="server" Text="Display Indexed Pages" Width="200px" ToolTip="Display indexed pages"></asp:Button><br />
				            <asp:Button id="btnDisplayIndexedWords" CssClass="ButtonText" runat="server" Text="Display Indexed Words" Width="200px" ToolTip="Display indexed words"></asp:Button>
			            </td>
			            <td>
				            <asp:Button id="btnSpellCheckIndexedPages" CssClass="ButtonText" runat="server" Text="Spell Check Indexed Pages" Width="200px" ToolTip="Spell check indexed pages"></asp:Button><br />
				            <asp:Button id="btnSpellCheckIndexedWords" CssClass="ButtonText" runat="server" Text="Spell Check Indexed Words" Width="200px" ToolTip="Spell check indexed words"></asp:Button>
			            </td>
		            </tr>
		            <tr valign="top">
			            <td colspan="2">
				            <asp:Button id="btnStopIndexing" CssClass="ButtonText" runat="server" Text="Stop Indexing" Width="200px" Visible="False" ToolTip="Stop indexing and use the new index"></asp:Button>
				            <asp:Button id="btnCancelIndexing" CssClass="ButtonText" runat="server" Text="Cancel Indexing" Width="200px" Visible="False" ToolTip="Cancel indexing and use the old index"></asp:Button>
			            </td>
		            </tr>
	            </table>
			</td>
		</tr>
		<tr>
			<td style="padding-top:10px">
                <span id="spanAddRemove" style="display:none">
                    <asp:TextBox ID="txtUrls" TextMode="MultiLine" Width="473px" runat="server" Rows="10" Wrap="false" ToolTip="Enter one url per line"></asp:TextBox><br />
			        <asp:Button id="btnDeleteIndex" CssClass="ButtonText" runat="server" Text="Delete Index" Width="200px" ToolTip="Delete the current index"></asp:Button><asp:Button id="btnAddUrls" CssClass="ButtonText" runat="server" Text="Add Urls" Width="200px" ToolTip="Add urls and keep crawling new ones on those pages"></asp:Button><asp:Button id="btnRemoveUrls" CssClass="ButtonText" runat="server" Text="Remove Urls" Width="200px" ToolTip="Remove urls from the current index"></asp:Button>
                </span>
			</td>
		</tr>
		<tr>
			<td style="color:red">
				<br />
				<asp:Label id="lblStatus" runat="server"></asp:Label>
				<br /><br />
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<asp:DataGrid id="dgDisplay" runat="server" AllowSorting="True" PageSize="100" AllowPaging="True"
							BorderColor="Black" BorderWidth="1px" CellPadding="2" Font-Size="X-Small" Font-Names="Arial">
							<AlternatingItemStyle BackColor="LightGray"></AlternatingItemStyle>
							<HeaderStyle Font-Bold="True" BackColor="LightYellow"></HeaderStyle>
							<PagerStyle Position="TopAndBottom" Mode="NumericPages"></PagerStyle>
						</asp:DataGrid>
			</td>
		</tr>
	</table>
    </form>
</body>
</html>
